import request from '@/config/axios'

// 查询余震列表
export const list = async () => {
  return await request.get({ url: '/aftershockConfigData/list'})
}

//获取余震
export const getAftershock = async (id) => {
  return await request.get({ url: '/aftershockConfigData/' + id})
}

//修改余震
export const updateAftershock = async (item) => {
  return await request.put({ url: '/aftershockConfigData/createOrUpdate',data:item})
}

//删除余震
export const deleteAftershock = async (ids) => {
  return await request.delete({ url: '/aftershockConfigData/delete',data:ids})
}
